<?php 
/**
 * $Id: default.php 4 2010-10-07 14:41:28Z ahmtsari $
 * Bid history view for BF Auction Component
 *
 * @package    Joomla
 * @subpackage Components
 * @link http://www.tamlyncreative.com.au/software
 * @copyright	Copyright (c) 2010 - Tamlyn Creative Pty Ltd.
 * @license		GNU GPL
 *
 *	  BF Auction is free software: you can redistribute it and/or modify
 *    it under the terms of the GNU General Public License as published by
 *    the Free Software Foundation, either version 3 of the License, or
 *    (at your option) any later version.
 *
 *    BF Auction is distributed in the hope that it will be useful,
 *    but WITHOUT ANY WARRANTY; without even the implied warranty of
 *    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *    GNU General Public License for more details.
 *
 *    You should have received a copy of the GNU General Public License
 *    along with BF Auction.  If not, see <http://www.gnu.org/licenses/>.
 *
 *
 * Author's notes: When GNU speaks of free software, it is referring to freedom, not price.
 * We encourage you to purchase your copy of BF Auction from the developer (Tamlyn Creative Pty Ltd),
 * so that we can continue to make this product better and continue to provide a high quality of support.
 *
 */

	// Check to ensure this file is included in Joomla!
	defined('_JEXEC') or die();

    $Itemid = JRequest::getVar('Itemid');
	$menu =& JMenu::getInstance('site');
	$config = & $menu->getParams( $Itemid );
	
	$currency = $config->get( 'currency' );
?>
<div class="col width-65">
	<fieldset class="adminform">
		<legend><?php echo JText::_( 'Bid History' ); ?></legend>
		
	<table class="adminlist">
	<thead>
		<tr class="bfauctionReportHeader">
		<th width="200">
			<?php echo JText::_( 'Username' ); ?>: 
		</th>
		<th width="100">
			<?php echo JText::_( 'Bid' ); ?>:
		</th>

		<th width="150">
			<?php echo JText::_( 'Bid Date' ); ?>:
		</th>
		</tr>
		</thead>
		
		<?php	
		for ($i=0, $n=count( $this->items ); $i < $n; $i++)
		{
			$row = &$this->items[$i];
			?>
			<tr class="bfauctionReportBody">
			<td align="center">
			   <?php echo $row->username; ?>
			</td>
			<td align="right">
			   <?php echo $currency; ?><?php echo $row->bid; ?>
			</td>
			<td align="center">
			    <strong><?php echo $row->bid_time;?></strong>
			</td>
			</tr>
		<?php 
		} //end for
		?>

	</table>
	

	</fieldset>
</div>
<div class="col width-35">
	&nbsp;
</div>
<div class="clr"></div>

<!-- don't remove the following 7 lines if you didn't purchase BF Auction. Purchased version BF Auction Pro has no restrictions. -->
	<br>
	<table width="100%">
	<tr>
	<td><?php echo JText::_('Powered by'); ?> <a href="http://www.tamlyncreative.com.au/software/" target="_blank">BF Auction</a></td>
	<td><a href="http://www.tamlyncreative.com.au/software/" target="_blank"><img src="./components/com_bfauction/images/bftick.jpg" height="42" align="right" border="0" ></a></td>
	</tr>
	</table>